package com.wj.ballcat.demo.converter;

import com.wj.ballcat.demo.model.entity.Demo;
import com.wj.ballcat.demo.model.vo.DemoPageVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 模型转换器
 *
 * @author ballcat 2022-10-08 17:08:19
 */
@Mapper
public interface DemoConverter {

	DemoConverter INSTANCE = Mappers.getMapper(DemoConverter.class);

	/**
	 * PO 转 PageVO
	 * @param demo
	 * @return DemoPageVO PageVO
	 */
	DemoPageVO poToPageVo(Demo demo);

}
